package com.molin.OOP;

public class StudentTest {
    public static void main(String[] args) {
        Student student=new Student();
        student.Study();
        System.out.println(student.getAge());
        System.out.println(student.getName());
        //成员变量在堆内存中
        student.setAge(-23);
        student.setName("张三");
        System.out.println(student.getAge());
        System.out.println(student.getName());
        System.out.println(student);
        //com.molin.OOP.Student@b4c966a
        //全类名
        Student st=new Student("王五",12);
        st.show();
    }
}
